import java.util.Scanner;

public class PhoneBookConsole {
	public void readName(String name) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter a name: ");
		name = sc.nextLine();
		sc.close();
	}

	public void readSurname(String surname) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter a surname: ");
		surname = sc.nextLine();
		sc.close();

	}

	public void readAge(int age) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter an age: ");
		age = sc.nextInt();
		sc.close();
	}

	public void readPhone(String phone) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter a phone number: ");
		phone = sc.nextLine();
		sc.close();
	}

	public void readMale(int numberFatherhoods) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter a number of the fatherhoods: ");
		sc.close();
	}

	public void readFemale(int numberOfPregnancies) {
		Scanner sc = new Scanner(System.in);
		System.out.println("Enter a number of the pregnancies: ");
		sc.close();
	}

	public void showAll() {
		Phonebook[] p = new Phonebook[100];
		for (int i = 0; i < p.length; i++) {
			p[i].toString();
		}
	}

}
